package etc.spec.ytt.week5;

public class Animal{
    public String name;
    public String gender;
    public int age;
    public String food;
    public Animal(){
    }
    public Animal(String name,String gender,int age){
        this.name=name;
        this.gender=gender;
        this.age=age;
    }
    public void born(){
        System.out.println("i was born with name"+this.name);
    }
    public String eat(){
        System.out.println("i am "+name+",i eat"+food);
        return"eat";
    }
    public void breed(){
        System.out.println(" i breed fast");
    }
}